package com.yellow.chatservice.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author: hy
 * @create: 2024-02-16
 */
@Configuration
public class WebSocketConfig {

    @Bean
    // 注入ServerEndpointExporter ,自动注册使用@ServerEndPoint注解的
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }
}
